<?php

use Biz\service\BrandUser as sBrandUser;

class GoodsListAction extends ActionPlugin
{
    public function main()
    {
        $brand_id = $this->getRequest()->getQuery('brand_id', 0);
        $province_id = $this->getRequest()->getQuery('province_id', 0);
        $sort_type = $this->getRequest()->getQuery('sort_type', 0); // 0 默认  1 最新
        $page = $this->getRequest()->getQuery('page', 1);
        $cityId = $this->getRequest()->getQuery('city_id', 0);
        $areaCode = $cityId ? $cityId : $province_id;
        $Rst = sBrandUser::GoodsList($brand_id, $areaCode, $sort_type, $page);

        $this->setSuccess($Rst);
    }
}